package com.tarzan.common.core.config;

/**
 * @Package com.tarzan.common.core.config
 * @Title ConfigUtils
 * @Description TODO
 * @Author liujinshan
 * @CreateTime 2021/7/2 9:21
 */
public class ConfigUtils {
    /**
     * 验证码 redis key
     */
    public static final String CHECK_CODE_KEY = "check_codes:";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:" ;
    /** 是否为系统默认（是） */
    public static final String YES = "Y";

    /** 是否菜单外链（是） */
    public static final String YES_FRAME = "0";

    /** 是否菜单外链（否） */
    public static final String NO_FRAME = "1";

    /** 菜单类型（目录） */
    public static final String TYPE_DIR = "M";

    /** 菜单类型（菜单） */
    public static final String TYPE_MENU = "C";

    /** 菜单类型（按钮） */
    public static final String TYPE_BUTTON = "F";

    /** Layout组件标识 */
    public final static String LAYOUT = "Layout";

    /** Layout组件标识 */
    public final static String USER_START = "1";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    public static final long MILLIS_SECOND = 1000;

    public static final long MILLIS_MINUTE = 60 * MILLIS_SECOND;

    public static final Long MILLIS_MINUTE_TEN = 20 * 60 * 1000L;

}
